// 矩形弹框(显示PDF文件)、显示数据项详细内容
<template>
  <Modal v-on:hidden="$emit('hidden')">
    <div class="rectangle">
      <!-- 弹窗点击关闭事件 -->
      <p><img src="../assets/img/polygon/11.png" alt="" class="imgBtn_close" @click="$emit('hidden')" /></p>
      <div class="modal_box flexC font_s34">
        <!-- 从父组件传递 title 值作为此组件的列表标题 -->
        <!-- <p class="colorF flexC AlignItemsC font_s27">
          <span style="color: #00FFFF;">-&nbsp;{{ title }}&nbsp;-</span>
        </p> -->
        <!-- 组件的内容主体 -->
        <div class="flex1">
          <slot></slot>
        </div>
      </div>
    </div>
  </Modal>
</template>
<script>
import Modal from './Modal'
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  components: {
    Modal
  }
}
</script>
<style lang="scss" scoped>
.rectangle {
  width: 36%;
  height: 95%;
  position: absolute;
  top: 2%;
  left: 32%;
  background: url(../assets/img/polygon/10.png) no-repeat;
  background-size: 100% 100%;
  .imgBtn_close {
    cursor: pointer;
    z-index: 99;
    width: 6%;
    position: absolute;
    top: 0%;
    right: 0%;
    width: 10%;
  }
  .bgImg_toptitle {
    width: 100%;
    position: absolute;
    z-index: 0;
  }
  .modal_box {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    font-weight: bold;
    font-family: Microsoft YaHei;
  }
}
</style>
